package org.qiuqiu.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.qiuqiu.vo.PaginationVO;
import org.qiuqiu.vo.Post;
import org.qiuqiu.vo.PostExample;
import org.qiuqiu.vo.User;

public interface PostMapper extends BaseDao{
    int countByExample(PostExample example);
	int deleteByExample(PostExample example);
	int deleteByPrimaryKey(Integer postid);
	int insert(Post record);
	int insertSelective(Post record);
	List<Post> selectByExample(PostExample example);
	Post selectByPrimaryKey(Integer postid);
	int updateByExampleSelective(@Param("record") Post record,
			@Param("example") PostExample example);
	int updateByExample(@Param("record") Post record,
			@Param("example") PostExample example);
	int updateByPrimaryKeySelective(Post record);
	int updateByPrimaryKey(Post record);
	List<Post> findAllPostByUser(@Param("user")User user,@Param("page")PaginationVO page);
   int countPostByUser(@Param("user")User user);
	List<Post> selectPageByAll(@Param("record") PaginationVO page,@Param("post") Post post);
    List<Post> findallClickandInfo(@Param("page") PaginationVO page);
    int totalInfo();
    int updateRe(@Param("postid") Integer postid);
}